doctype html
html
    head
        title= title
        link(rel='stylesheet', href='/bootstrap.min.css')
        link(rel='stylesheet', href='/stylesheets/style.css')
        script(src="/jquery.min.js")
        script(src="/bootstrap.min.js")
        script(src="/my.js")
    body(id='yx')
        div.main
            div
                if user
                    h1.title(onclick="javascript:location.href='/'") #{user.username}的笔记本
                    div
                        a(href="#" id="btnLogout") logout
                    div
                        a(href="/newnote" ) new note
                else
                    h1.title(onclick="javascript:location.href='/'") MyNote
                    a(href="/login") login
            block content
